<meta charset="utf-8" />
<meta content="width=device-width, minimum-scale=1, maximum-scale=1" name="viewport">

        <!-- Home -->
        <div data-role="page" data-theme="d"  id="page2">
                <script>
        $(document).ready(function(){
       	    $("#tientui_signup_cancel").bind("click", function() {
		      $.mobile.changePage('<?php echo base_url() ?>index.php/login', "slidefade", true, false);
            }); 
        });
        
		
function popErrorMessage(errorMessage) {
		jQuery("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h5>" + errorMessage + "</h5></div>").css({
			"display": "block",
			"padding": "10px",
			"opacity": 0.8,
			"top": $(window).scrollTop() + 50,
			"left": $(window).width() / 2 - 50
		}).appendTo("#page1").delay(1500).fadeOut(700, function() {
			$(this).remove();
		});
	}

        </script>
            <div data-theme="a" data-role="header">
                <h3>
                    <?php echo lang('signup_title'); ?>
                </h3>
            </div>
            	<?php if (isset ($isError) && !empty($isError) && $isError == true) { ?>
		<script>
			
			//popErrorMessage("{errormessage}");
		
		</script>
		<?php } ?>
            <div data-role="content">
                <form id="form_signup" action="{signup_url}" method="post" data-ajax="false">
                <?php echo form_error('email'); ?>
                <div data-role="fieldcontain">
                    <fieldset data-role="controlgroup" data-mini="true">
                        <label for="tientui_signup_email">
                            <?php echo lang('email') ?>
                        </label>
                        <input name="email" id="tientui_signup_email" placeholder="" value="{email}" type="email"  />
                    </fieldset>
                </div>
                <?php echo form_error('passwd'); ?>
                <div data-role="fieldcontain">
                    <fieldset data-role="controlgroup" data-mini="true">
                        <label for="tientui_signup_pwd">
                            <?php echo lang('passwd') ?>
                        </label>
                        <input name="passwd" id="tientui_signup_pwd" placeholder="" value="{passwd}" type="password" />
                    </fieldset>
                </div>
                <?php echo form_error('repasswd'); ?>
                <div data-role="fieldcontain">
                    <fieldset data-role="controlgroup" data-mini="true">
                        <label for="tientui_signup_pwdconfirm">
                            <?php echo lang('repasswd') ?>
                        </label>
                        <input name="repasswd" id="tientui_signup_pwdconfirm" placeholder="" value="{repasswd}" type="password" />
                    </fieldset>
                </div>
                <fieldset class="ui-grid-a">
						<div class="ui-block-a">
							<input data-theme="b" value="<?php echo lang('sign_up') ?>" type="submit"/>
						</div>
						<div class="ui-block-b">
							<a data-theme="c" id="tientui_signup_cancel" data-role="button"><?php echo lang('cancel') ?></a>
						</div>
					</fieldset>
                
                
                </form >
            </div>
        </div>

